#1,导入最基本的launch模块
from launch import LaunchDescription
from launch_ros.actions import Node
 
#2,函数实现
def generate_launch_description():
    #3,创建launch description对象
    ld = LaunchDescription()
    #4,创建节点对象
    node = Node(
        package='param_add_on_set',
        executable='add_on_set_node_exec',
        parameters=[
            {"name":"liming"},
            {"age":20},
            {"height":1.80}
        ],
        output='screen',
        emulate_tty=True # 启用颜色输出
    )
    #5,将节点添加到launch description中
    ld.add_action(node)
    #6,返回launch description对象
    return ld